void setup()
{
    Serial.begin(9600);
}

void loop()
{
    //Have the Arduino wait to receive input  er
    while (Serial.available()==0);

    //Read the input
    char val = Serial.read();

    //Echo
    Serial.println(val);
}
